.class public Les/gu;
.super Ljava/lang/Object;
.source "ThirdAppGuaid.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/gu$b;,
        Les/gu$a;
    }
.end annotation


# static fields
.field private static b:I = -0x1


# instance fields
.field private a:Les/kl;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Les/kl<",
            "Les/gu$a;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Les/kl;

    new-instance v1, Les/gu$a;

    invoke-direct {v1}, Les/gu$a;-><init>()V

    invoke-direct {v0, v1}, Les/kl;-><init>(Les/ll;)V

    iput-object v0, p0, Les/gu;->a:Les/kl;

    return-void
.end method

.method static synthetic a(Les/gu;)Les/kl;
    .locals 0

    .line 1
    iget-object p0, p0, Les/gu;->a:Les/kl;

    return-object p0
.end method

.method private b(Landroid/content/Context;)V
    .locals 8

    .line 2
    :try_start_0
    iget-object v0, p0, Les/gu;->a:Les/kl;

    iget-object v0, v0, Les/kl;->c:Les/ll;

    check-cast v0, Les/gu$a;

    iget-object v0, v0, Les/gu$a;->f:Ljava/lang/String;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_0

    .line 4
    invoke-static {p1, v0}, Lcom/estrongs/android/pop/utils/k;->b(Landroid/content/Context;Ljava/lang/String;)V

    const-string p1, "thirdapp_icon_download"

    .line 5
    invoke-virtual {p0, p1}, Les/gu;->a(Ljava/lang/String;)V

    goto :goto_0

    .line 6
    :cond_0
    iget-object v0, p0, Les/gu;->a:Les/kl;

    iget-object v0, v0, Les/kl;->c:Les/ll;

    check-cast v0, Les/gu$a;

    iget-object v2, v0, Les/gu$a;->e:Ljava/lang/String;

    const-string v3, "pname"

    iget-object v0, p0, Les/gu;->a:Les/kl;

    iget-object v0, v0, Les/kl;->c:Les/ll;

    check-cast v0, Les/gu$a;

    iget-object v0, v0, Les/gu$a;->h:Ljava/lang/String;

    .line 7
    invoke-static {v0}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    const/4 v6, 0x1

    const/4 v7, 0x1

    move-object v1, p1

    .line 8
    invoke-static/range {v1 .. v7}, Lcom/estrongs/android/pop/utils/k;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)V

    const-string p1, "thirdapp_icon_gomarekt"

    .line 9
    invoke-virtual {p0, p1}, Les/gu;->a(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 10
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    const-string p1, "thirdapp_icon_dialog"

    .line 11
    invoke-virtual {p0, p1}, Les/gu;->a(Ljava/lang/String;)V

    return-void
.end method

.method private c(Landroid/content/Context;)V
    .locals 2

    .line 13
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    .line 14
    iget-object v1, p0, Les/gu;->a:Les/kl;

    iget-object v1, v1, Les/kl;->c:Les/ll;

    check-cast v1, Les/gu$a;

    iget-object v1, v1, Les/gu$a;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->getLaunchIntentForPackage(Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v0

    const/high16 v1, 0x34000000

    .line 15
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 16
    invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    const-string p1, "thirdapp_icon_start"

    .line 17
    invoke-virtual {p0, p1}, Les/gu;->a(Ljava/lang/String;)V

    return-void
.end method

.method public static e()Les/gu;
    .locals 2

    .line 1
    new-instance v0, Les/gu;

    invoke-direct {v0}, Les/gu;-><init>()V

    .line 2
    new-instance v1, Les/gu$b;

    invoke-direct {v1, v0}, Les/gu$b;-><init>(Les/gu;)V

    .line 3
    invoke-virtual {v1}, Les/gl;->b()Les/ll;

    return-object v0
.end method

.method private f()Z
    .locals 7

    .line 1
    iget-object v0, p0, Les/gu;->a:Les/kl;

    iget-object v0, v0, Les/kl;->c:Les/ll;

    check-cast v0, Les/gu$a;

    iget-object v0, v0, Les/gu$a;->e:Ljava/lang/String;

    const-string v1, "com.duapps.recorder"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_2

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v0

    const/16 v2, 0x15

    const/4 v3, 0x0

    if-ge v0, v2, :cond_0

    return v3

    :cond_0
    const/4 v0, 0x6

    new-array v2, v0, [Ljava/lang/String;

    const-string v4, "HWY560-L"

    aput-object v4, v2, v3

    const-string v4, "HWY560-U"

    aput-object v4, v2, v1

    const/4 v4, 0x2

    const-string v5, "hwSCLU-Q"

    aput-object v5, v2, v4

    const/4 v4, 0x3

    const-string v5, "hwSCC-Q"

    aput-object v5, v2, v4

    const/4 v4, 0x4

    const-string v5, "hwSCL-Q"

    aput-object v5, v2, v4

    const/4 v4, 0x5

    const-string v5, "AQ5001"

    aput-object v5, v2, v4

    const/4 v4, 0x0

    :goto_0
    if-ge v4, v0, :cond_2

    .line 3
    aget-object v5, v2, v4

    .line 4
    sget-object v6, Landroid/os/Build;->DEVICE:Ljava/lang/String;

    invoke-virtual {v6, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    return v3

    :cond_1
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    :cond_2
    return v1
.end method


# virtual methods
.method public a()Ljava/lang/String;
    .locals 1

    .line 2
    iget-object v0, p0, Les/gu;->a:Les/kl;

    iget-object v0, v0, Les/kl;->c:Les/ll;

    check-cast v0, Les/gu$a;

    iget-object v0, v0, Les/gu$a;->d:Ljava/lang/String;

    return-object v0
.end method

.method public a(Landroid/content/Context;)V
    .locals 2

    .line 3
    iget-object v0, p0, Les/gu;->a:Les/kl;

    iget-object v0, v0, Les/kl;->c:Les/ll;

    move-object v1, v0

    check-cast v1, Les/gu$a;

    iget-boolean v1, v1, Les/gu$a;->k:Z

    if-eqz v1, :cond_0

    check-cast v0, Les/gu$a;

    iget-object v0, v0, Les/gu$a;->f:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 4
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 5
    iget-object v1, p0, Les/gu;->a:Les/kl;

    iget-object v1, v1, Les/kl;->c:Les/ll;

    check-cast v1, Les/gu$a;

    iget-object v1, v1, Les/gu$a;->f:Ljava/lang/String;

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    const/high16 v1, 0x10000000

    .line 6
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    const/high16 v1, 0x4000000

    .line 7
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 8
    invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    const-string p1, "thirdapp_icon_inner"

    .line 9
    invoke-virtual {p0, p1}, Les/gu;->a(Ljava/lang/String;)V

    goto :goto_0

    .line 10
    :cond_0
    iget-object v0, p0, Les/gu;->a:Les/kl;

    iget-object v0, v0, Les/kl;->c:Les/ll;

    check-cast v0, Les/gu$a;

    iget-object v0, v0, Les/gu$a;->e:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/pop/utils/k;->b(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 11
    invoke-direct {p0, p1}, Les/gu;->b(Landroid/content/Context;)V

    goto :goto_0

    .line 12
    :cond_1
    invoke-direct {p0, p1}, Les/gu;->c(Landroid/content/Context;)V

    :goto_0
    const-string p1, "thirdapp_icon_click"

    .line 13
    invoke-virtual {p0, p1}, Les/gu;->a(Ljava/lang/String;)V

    return-void
.end method

.method a(Ljava/lang/String;)V
    .locals 2

    .line 14
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    iget-object v1, p0, Les/gu;->a:Les/kl;

    iget-object v1, v1, Les/kl;->c:Les/ll;

    check-cast v1, Les/gu$a;

    iget-object v1, v1, Les/gu$a;->e:Ljava/lang/String;

    invoke-virtual {v0, p1, v1}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public b()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Les/gu;->a:Les/kl;

    iget-object v0, v0, Les/kl;->c:Les/ll;

    check-cast v0, Les/gu$a;

    iget-object v0, v0, Les/gu$a;->c:Ljava/lang/String;

    return-object v0
.end method

.method public c()Z
    .locals 3

    .line 1
    iget-object v0, p0, Les/gu;->a:Les/kl;

    iget-boolean v1, v0, Les/kl;->b:Z

    const/4 v2, 0x0

    if-eqz v1, :cond_6

    iget-object v0, v0, Les/kl;->c:Les/ll;

    if-nez v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    move-object v1, v0

    check-cast v1, Les/gu$a;

    iget-boolean v1, v1, Les/gu$a;->j:Z

    if-nez v1, :cond_1

    check-cast v0, Les/gu$a;

    iget-object v0, v0, Les/gu$a;->e:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/pop/utils/k;->b(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    return v2

    .line 3
    :cond_1
    invoke-direct {p0}, Les/gu;->f()Z

    move-result v0

    if-nez v0, :cond_2

    return v2

    .line 4
    :cond_2
    iget-object v0, p0, Les/gu;->a:Les/kl;

    iget-object v0, v0, Les/kl;->c:Les/ll;

    check-cast v0, Les/gu$a;

    iget-boolean v0, v0, Les/gu$a;->i:Z

    if-eqz v0, :cond_4

    .line 5
    sget v0, Les/gu;->b:I

    const/4 v1, -0x1

    if-ne v0, v1, :cond_3

    const-string v0, "com.android.vending"

    .line 6
    invoke-static {v0}, Lcom/estrongs/android/pop/utils/k;->b(Ljava/lang/String;)Z

    move-result v0

    .line 7
    sput v0, Les/gu;->b:I

    .line 8
    :cond_3
    sget v0, Les/gu;->b:I

    if-nez v0, :cond_4

    return v2

    .line 9
    :cond_4
    invoke-static {}, Lcom/nostra13/universalimageloader/core/d;->h()Lcom/nostra13/universalimageloader/core/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nostra13/universalimageloader/core/d;->c()Les/yf0;

    move-result-object v0

    if-eqz v0, :cond_6

    .line 10
    iget-object v1, p0, Les/gu;->a:Les/kl;

    iget-object v1, v1, Les/kl;->c:Les/ll;

    check-cast v1, Les/gu$a;

    iget-object v1, v1, Les/gu$a;->c:Ljava/lang/String;

    invoke-interface {v0, v1}, Les/yf0;->get(Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    if-eqz v0, :cond_5

    .line 11
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_5

    const/4 v0, 0x1

    return v0

    .line 12
    :cond_5
    iget-object v0, p0, Les/gu;->a:Les/kl;

    iget-object v0, v0, Les/kl;->c:Les/ll;

    check-cast v0, Les/gu$a;

    iget-object v0, v0, Les/gu$a;->c:Ljava/lang/String;

    invoke-static {v0}, Les/qg;->a(Ljava/lang/String;)V

    :cond_6
    :goto_0
    return v2
.end method

.method public d()V
    .locals 1

    const-string v0, "thirdapp_icon_show"

    .line 1
    invoke-virtual {p0, v0}, Les/gu;->a(Ljava/lang/String;)V

    return-void
.end method
